#include <stdlib.h>
#include <stdio.h>

#include <SDL/SDL_mixer.h>
#include <SDL/SDL.h>


void initSDL()
{
    SDL_Surface* affichage;


    if (SDL_Init(SDL_INIT_VIDEO) < 0)
    {
        printf( "Erreur à l'initialisation de la SDL \n");
        exit(EXIT_FAILURE);
    }

    atexit(SDL_Quit);
    affichage = SDL_SetVideoMode(0, 0, 0, SDL_SWSURFACE | SDL_FULLSCREEN);
    if (affichage == NULL)
    {
        printf( "Impossible d'activer le mode graphique \n");
        exit(EXIT_FAILURE);
    }

    SDL_WM_SetCaption("jeu de nime", NULL);
}
